package com.jzit168.module_main.network

import com.jzit168.library_common.common.Constant
import com.jzit168.library_retrofit.RetrofitFactory
import com.jzit168.library_retrofit.interceptors.TokenInterceptor
import com.jzit168.library_utils.MMKVUtil

/**
 *@Desc:
 *@Author: Android Developer
 *@Date: 2020/10/15
 *
 **/
class APIManager {

    private val retrofit by lazy {
        RetrofitFactory.create(
            "http://api.jzit168.com/",
            MainService::class.java,
            TokenInterceptor(MMKVUtil.getString(Constant.TOKEN))
        )
    }

}